import request from '@/utils/request'



//查询车辆列表
//listVehicle
export function listVehicle(query) {
  return request({
    url: '/motor/vehicle/getAll',
    method: 'get',
    params: query
  })
}

//获得数据总条数
export function getTotal(query) {
  return request({
    url: '/motor/vehicle/getTotal',
    method: 'get',
    params: query
  })
}
//根据id查找单个车辆
export function getVehicleById(vehicleId) {
  return request({
    url: '/motor/vehicle/' + vehicleId,
    method: 'get'
  })
}
//添加车辆
export function addVehicle(data) {
  return request({
    url: '/motor/vehicle/addVehicle',
    method: 'post',
    data: data
  })
}
// 修改车辆
export function updateVehicle(data) {
  return request({
    url: '/motor/vehicle/updateVehicle',
    method: 'post',
    data: data
  })
}

// 删除车辆
export function delVehicle(vehicleId) {
  return request({
    url: '/motor/vehicle/' + vehicleId,
    method: 'delete'
  })
}








